package main

import (
	"fmt"
	"google.golang.org/grpc"
	"net"
	"qq_service/save_file/protobuf/pb"
	"qq_service/save_file/server"
)

const Address = ":6000"

func main() {
	listen, err := net.Listen("tcp", Address)
	if err != nil {
		fmt.Println(err)
	}
	s := grpc.NewServer()                                   //新建服务器
	pb.RegisterSaveFileServiceServer(s, &server.SaveFile{}) //注册服务器
	s.Serve(listen)                                         //服务

}
